package com.dragon.common.base.utils;

/**
 * @author Chris Chan
 * Create On 2025/7/29 下午9:38
 * Use for: 数据库操作工具
 * Explain:
 */
public class DbUtil {
    /**
     * 生成编码
     * 18位
     *
     * @return
     */
    public static long buildCode() {
        SnowflakeIdGenerator idGenerator = new SnowflakeIdGenerator(1, 1);
        return idGenerator.nextId();
    }
}
